package com.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.ClassBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author RJ
 * @date 2022/9/14 22:31
 */
@Repository
public interface IClassDao extends BaseMapper<ClassBean> {
    void addClass(ClassBean classBean);

    ClassBean getClassInfo(Integer classId);

    void updClass(@Param("classId") Integer classId, @Param("classManager") String classManager, @Param("classPhone") String classPhone);

    IPage<ClassBean> cutClassByItem(Page<ClassBean> page, @Param("className") String className, @Param("areaName") String areaName);
}
